﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class GameplayPVEEntityUnitManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Gameplay.PVE.Entity.UnitManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 75, 9, 8);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Resume", _m_Resume);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogicPause", _m_LogicPause);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddToSummonDic", _m_AddToSummonDic);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveSummonDic", _m_RemoveSummonDic);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectFromSummonDic", _m_GetGameObjectFromSummonDic);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSummonUnit", _m_AddSummonUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMyUnit", _m_AddMyUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMyMonsterUnit", _m_AddMyMonsterUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddAFKMyUnit", _m_AddAFKMyUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAfkMainUnit", _m_GetAfkMainUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "DynamicCreateObstacle", _m_DynamicCreateObstacle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "DynamicCreateUnit", _m_DynamicCreateUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "DynamicCreateEnemy", _m_DynamicCreateEnemy);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "DynamicCreateBattleUnit", _m_DynamicCreateBattleUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "DynamicCreateSelfHero", _m_DynamicCreateSelfHero);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddUnitsWithSpecialObject", _m_AddUnitsWithSpecialObject);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEnemyUnit", _m_AddEnemyUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateObstacle", _m_CreateObstacle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddObstacle", _m_AddObstacle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMortal", _m_AddMortal);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddNpc", _m_AddNpc);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddVehicle", _m_AddVehicle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveUnit", _m_RemoveUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnitDead", _m_UnitDead);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllUnitByTeam", _m_GetAllUnitByTeam);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsUnitDying", _m_IsUnitDying);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMyTeamRandomHeroID", _m_GetMyTeamRandomHeroID);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStageStartTime", _m_GetStageStartTime);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetStageStartTime", _m_ResetStageStartTime);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWaveUI", _m_UpdateWaveUI);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAliveEnemyUI", _m_UpdateAliveEnemyUI);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveStageSpawnUnit", _m_RemoveStageSpawnUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddStageSpawnUnit", _m_AddStageSpawnUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateStageSpawnTime", _m_UpdateStageSpawnTime);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetObstacles", _m_GetObstacles);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnitLeaveHidePoint", _m_UnitLeaveHidePoint);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnitInHidePoint", _m_UnitInHidePoint);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHidePositions", _m_GetHidePositions);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAttackPointsTest", _m_RefreshAttackPointsTest);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowAttackPoints", _m_ShowAttackPoints);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowAttackRange", _m_ShowAttackRange);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshHidePointsTest", _m_RefreshHidePointsTest);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllUnitCountByTeam", _m_GetAllUnitCountByTeam);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMeleeAttackPosition", _m_GetMeleeAttackPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAttackPositionNew", _m_GetAttackPositionNew);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAttackPosition", _m_GetAttackPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResLoadComplete", _m_ResLoadComplete);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Restart", _m_Restart);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "StageStart", _m_StageStart);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearSummonUnit", _m_ClearSummonUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearObstacles", _m_ClearObstacles);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearHangingUnits", _m_ClearHangingUnits);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RpgStart", _m_RpgStart);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartGoToRpg", _m_StartGoToRpg);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearLastStageUnits", _m_ClearLastStageUnits);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUnitIgnoreType", _m_GetUnitIgnoreType);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUnit", _m_GetUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUnitBase", _m_GetUnitBase);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMortalUnit", _m_GetMortalUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetObstacleUnit", _m_GetObstacleUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "FixedUpdate", _m_FixedUpdate);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "BeforeUpdate", _m_BeforeUpdate);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsCanAutoSkill", _m_CheckIsCanAutoSkill);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearStage", _m_ClearStage);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearMyHeroes", _m_ClearMyHeroes);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearEnemy", _m_ClearEnemy);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "HideAllHeroes", _m_HideAllHeroes);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowAllHeroes", _m_ShowAllHeroes);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "StageEnd", _m_StageEnd);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SwitchBall", _m_SwitchBall);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RebornSelfUnits", _m_RebornSelfUnits);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "KillNum", _g_get_KillNum);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "units", _g_get_units);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "npcUnits", _g_get_npcUnits);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "enemyDeadNum", _g_get_enemyDeadNum);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "globalSkillIndex", _g_get_globalSkillIndex);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "enemyEnergy", _g_get_enemyEnergy);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "restEnemyCount", _g_get_restEnemyCount);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentStage", _g_get_currentStage);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxStage", _g_get_maxStage);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "units", _s_set_units);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "npcUnits", _s_set_npcUnits);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "enemyDeadNum", _s_set_enemyDeadNum);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "globalSkillIndex", _s_set_globalSkillIndex);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "enemyEnergy", _s_set_enemyEnergy);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "restEnemyCount", _s_set_restEnemyCount);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "currentStage", _s_set_currentStage);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxStage", _s_set_maxStage);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0);
			
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance);
            
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Gameplay.PVE.Entity.UnitManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Gameplay.PVE.Entity.UnitManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Pause(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Pause(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Resume(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Resume(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LogicPause(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.LogicPause(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddToSummonDic(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _skillIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _unitIndex = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject));
                    
                    gen_to_be_invoked.AddToSummonDic( _skillIndex, _unitIndex, _gameObject );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveSummonDic(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _skillIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _summonUnitId = LuaAPI.xlua_tointeger(L, 3);
                    
                    gen_to_be_invoked.RemoveSummonDic( _skillIndex, _summonUnitId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetGameObjectFromSummonDic(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _skillIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _unitIndex = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetGameObjectFromSummonDic( _skillIndex, _unitIndex );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddSummonUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _summonId = LuaAPI.xlua_tointeger(L, 3);
                    int _summonIndex = LuaAPI.xlua_tointeger(L, 4);
                    int _skillIndex = LuaAPI.xlua_tointeger(L, 5);
                    int _team = LuaAPI.xlua_tointeger(L, 6);
                    int _stageId = LuaAPI.xlua_tointeger(L, 7);
                    UnityEngine.Vector3 _position;translator.Get(L, 8, out _position);
                    Gameplay.PVE.Entity.UnitBase _summonParent = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 9, typeof(Gameplay.PVE.Entity.UnitBase));
                    
                        var gen_ret = gen_to_be_invoked.AddSummonUnit( _heroId, _summonId, _summonIndex, _skillIndex, _team, _stageId, _position, _summonParent );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddMyUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) 
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _positionId = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.AddMyUnit( _heroId, _stageId, _positionId );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.AddMyUnit( _heroId, _stageId );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager.AddMyUnit!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddMyMonsterUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _level = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.AddMyMonsterUnit( _heroId, _stageId, _level );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddAFKMyUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.AddAFKMyUnit( _heroId, _stageId );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAfkMainUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetAfkMainUnit(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DynamicCreateObstacle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _summonId = LuaAPI.xlua_tointeger(L, 2);
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    int _team = LuaAPI.xlua_tointeger(L, 4);
                    UnityEngine.Vector3 _position;translator.Get(L, 5, out _position);
                    UnityEngine.Vector3 _rotation;translator.Get(L, 6, out _rotation);
                    Gameplay.PVE.Entity.UnitBase _parent = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 7, typeof(Gameplay.PVE.Entity.UnitBase));
                    int _skillLevel = LuaAPI.xlua_tointeger(L, 8);
                    
                    gen_to_be_invoked.DynamicCreateObstacle( _summonId, _id, _team, _position, _rotation, _parent, _skillLevel );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DynamicCreateUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 10&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.Vector3>(L, 7)&& translator.Assignable<UnityEngine.Vector3>(L, 8)&& translator.Assignable<Gameplay.PVE.Entity.UnitBase>(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) 
                {
                    int _summonId = LuaAPI.xlua_tointeger(L, 2);
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    int _summonIndex = LuaAPI.xlua_tointeger(L, 4);
                    int _skillIndex = LuaAPI.xlua_tointeger(L, 5);
                    int _team = LuaAPI.xlua_tointeger(L, 6);
                    UnityEngine.Vector3 _position;translator.Get(L, 7, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 8, out _forward);
                    Gameplay.PVE.Entity.UnitBase _parent = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 9, typeof(Gameplay.PVE.Entity.UnitBase));
                    int _skillLevel = LuaAPI.xlua_tointeger(L, 10);
                    
                    gen_to_be_invoked.DynamicCreateUnit( _summonId, _id, _summonIndex, _skillIndex, _team, _position, _forward, _parent, _skillLevel );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 9&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.Vector3>(L, 7)&& translator.Assignable<UnityEngine.Vector3>(L, 8)&& translator.Assignable<Gameplay.PVE.Entity.UnitBase>(L, 9)) 
                {
                    int _summonId = LuaAPI.xlua_tointeger(L, 2);
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    int _summonIndex = LuaAPI.xlua_tointeger(L, 4);
                    int _skillIndex = LuaAPI.xlua_tointeger(L, 5);
                    int _team = LuaAPI.xlua_tointeger(L, 6);
                    UnityEngine.Vector3 _position;translator.Get(L, 7, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 8, out _forward);
                    Gameplay.PVE.Entity.UnitBase _parent = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 9, typeof(Gameplay.PVE.Entity.UnitBase));
                    
                    gen_to_be_invoked.DynamicCreateUnit( _summonId, _id, _summonIndex, _skillIndex, _team, _position, _forward, _parent );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.Vector3>(L, 7)&& translator.Assignable<UnityEngine.Vector3>(L, 8)) 
                {
                    int _summonId = LuaAPI.xlua_tointeger(L, 2);
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    int _summonIndex = LuaAPI.xlua_tointeger(L, 4);
                    int _skillIndex = LuaAPI.xlua_tointeger(L, 5);
                    int _team = LuaAPI.xlua_tointeger(L, 6);
                    UnityEngine.Vector3 _position;translator.Get(L, 7, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 8, out _forward);
                    
                    gen_to_be_invoked.DynamicCreateUnit( _summonId, _id, _summonIndex, _skillIndex, _team, _position, _forward );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager.DynamicCreateUnit!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DynamicCreateEnemy(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.DynamicCreateEnemy(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DynamicCreateBattleUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _summonId = LuaAPI.xlua_tointeger(L, 2);
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    int _summonIndex = LuaAPI.xlua_tointeger(L, 4);
                    int _team = LuaAPI.xlua_tointeger(L, 5);
                    int _skillIndex = LuaAPI.xlua_tointeger(L, 6);
                    UnityEngine.Vector3 _position;translator.Get(L, 7, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 8, out _forward);
                    Gameplay.PVE.Entity.UnitBase _parent = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 9, typeof(Gameplay.PVE.Entity.UnitBase));
                    int _skillLevel = LuaAPI.xlua_tointeger(L, 10);
                    
                    gen_to_be_invoked.DynamicCreateBattleUnit( _summonId, _id, _summonIndex, _team, _skillIndex, _position, _forward, _parent, _skillLevel );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DynamicCreateSelfHero(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.DynamicCreateSelfHero( _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddUnitsWithSpecialObject(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _specialObjectId = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
                    System.Collections.Generic.List<System.Action<UnityEngine.Vector3, float>> _addUnitHandler = (System.Collections.Generic.List<System.Action<UnityEngine.Vector3, float>>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List<System.Action<UnityEngine.Vector3, float>>));
                    
                    gen_to_be_invoked.AddUnitsWithSpecialObject( _specialObjectId, _position, _addUnitHandler );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddEnemyUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 9&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) 
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _index = LuaAPI.xlua_tointeger(L, 4);
                    int _level = LuaAPI.xlua_tointeger(L, 5);
                    int _skillPriority = LuaAPI.xlua_tointeger(L, 6);
                    int _skillCd = LuaAPI.xlua_tointeger(L, 7);
                    int _skillBornCd = LuaAPI.xlua_tointeger(L, 8);
                    int _positionId = LuaAPI.xlua_tointeger(L, 9);
                    
                        var gen_ret = gen_to_be_invoked.AddEnemyUnit( _heroId, _stageId, _index, _level, _skillPriority, _skillCd, _skillBornCd, _positionId );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) 
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _index = LuaAPI.xlua_tointeger(L, 4);
                    int _level = LuaAPI.xlua_tointeger(L, 5);
                    int _skillPriority = LuaAPI.xlua_tointeger(L, 6);
                    int _skillCd = LuaAPI.xlua_tointeger(L, 7);
                    int _skillBornCd = LuaAPI.xlua_tointeger(L, 8);
                    
                        var gen_ret = gen_to_be_invoked.AddEnemyUnit( _heroId, _stageId, _index, _level, _skillPriority, _skillCd, _skillBornCd );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) 
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _index = LuaAPI.xlua_tointeger(L, 4);
                    int _level = LuaAPI.xlua_tointeger(L, 5);
                    int _skillPriority = LuaAPI.xlua_tointeger(L, 6);
                    int _skillCd = LuaAPI.xlua_tointeger(L, 7);
                    
                        var gen_ret = gen_to_be_invoked.AddEnemyUnit( _heroId, _stageId, _index, _level, _skillPriority, _skillCd );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) 
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _index = LuaAPI.xlua_tointeger(L, 4);
                    int _level = LuaAPI.xlua_tointeger(L, 5);
                    int _skillPriority = LuaAPI.xlua_tointeger(L, 6);
                    
                        var gen_ret = gen_to_be_invoked.AddEnemyUnit( _heroId, _stageId, _index, _level, _skillPriority );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) 
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _index = LuaAPI.xlua_tointeger(L, 4);
                    int _level = LuaAPI.xlua_tointeger(L, 5);
                    
                        var gen_ret = gen_to_be_invoked.AddEnemyUnit( _heroId, _stageId, _index, _level );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) 
                {
                    int _heroId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _index = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.AddEnemyUnit( _heroId, _stageId, _index );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager.AddEnemyUnit!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CreateObstacle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Gameplay.PVE.Data.RpgLevelData.RpgObstacle>(L, 3)&& translator.Assignable<Gameplay.PVE.Entity.UnitBase>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) 
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    Gameplay.PVE.Data.RpgLevelData.RpgObstacle _obstacle = (Gameplay.PVE.Data.RpgLevelData.RpgObstacle)translator.GetObject(L, 3, typeof(Gameplay.PVE.Data.RpgLevelData.RpgObstacle));
                    Gameplay.PVE.Entity.UnitBase _parent = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 4, typeof(Gameplay.PVE.Entity.UnitBase));
                    int _skillLevel = LuaAPI.xlua_tointeger(L, 5);
                    
                    gen_to_be_invoked.CreateObstacle( _id, _obstacle, _parent, _skillLevel );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Gameplay.PVE.Data.RpgLevelData.RpgObstacle>(L, 3)&& translator.Assignable<Gameplay.PVE.Entity.UnitBase>(L, 4)) 
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    Gameplay.PVE.Data.RpgLevelData.RpgObstacle _obstacle = (Gameplay.PVE.Data.RpgLevelData.RpgObstacle)translator.GetObject(L, 3, typeof(Gameplay.PVE.Data.RpgLevelData.RpgObstacle));
                    Gameplay.PVE.Entity.UnitBase _parent = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 4, typeof(Gameplay.PVE.Entity.UnitBase));
                    
                    gen_to_be_invoked.CreateObstacle( _id, _obstacle, _parent );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager.CreateObstacle!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddObstacle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stageId = LuaAPI.xlua_tointeger(L, 2);
                    Gameplay.PVE.Data.RpgLevelData.RpgObstacle _obstacle = (Gameplay.PVE.Data.RpgLevelData.RpgObstacle)translator.GetObject(L, 3, typeof(Gameplay.PVE.Data.RpgLevelData.RpgObstacle));
                    UnityEngine.Vector3 _startPosition;translator.Get(L, 4, out _startPosition);
                    
                    gen_to_be_invoked.AddObstacle( _stageId, _obstacle, _startPosition );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddMortal(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) 
                {
                    int _unitId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _modelId = LuaAPI.xlua_tointeger(L, 4);
                    bool _specialNpc = LuaAPI.lua_toboolean(L, 5);
                    
                        var gen_ret = gen_to_be_invoked.AddMortal( _unitId, _stageId, _modelId, _specialNpc );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) 
                {
                    int _unitId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    int _modelId = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.AddMortal( _unitId, _stageId, _modelId );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager.AddMortal!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddNpc(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _unitId = LuaAPI.xlua_tointeger(L, 2);
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    
                    gen_to_be_invoked.AddNpc( _unitId, _stageId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddVehicle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stageId = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.AddVehicle( _stageId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.RemoveUnit( _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnitDead(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.UnitDead( _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAllUnitByTeam(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _team = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetAllUnitByTeam( _team );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsUnitDying(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.IsUnitDying(  );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetMyTeamRandomHeroID(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetMyTeamRandomHeroID(  );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetStageStartTime(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stage = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetStageStartTime( _stage );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ResetStageStartTime(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ResetStageStartTime(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateWaveUI(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.UpdateWaveUI(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateAliveEnemyUI(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.UpdateAliveEnemyUI(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveStageSpawnUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stage = LuaAPI.xlua_tointeger(L, 2);
                    int _index = LuaAPI.xlua_tointeger(L, 3);
                    
                    gen_to_be_invoked.RemoveStageSpawnUnit( _stage, _index );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddStageSpawnUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stage = LuaAPI.xlua_tointeger(L, 2);
                    int _index = LuaAPI.xlua_tointeger(L, 3);
                    
                    gen_to_be_invoked.AddStageSpawnUnit( _stage, _index );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateStageSpawnTime(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stage = LuaAPI.xlua_tointeger(L, 2);
                    float _time = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    gen_to_be_invoked.UpdateStageSpawnTime( _stage, _time );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetObstacles(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetObstacles(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnitLeaveHidePoint(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    
                    gen_to_be_invoked.UnitLeaveHidePoint( _position );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnitInHidePoint(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    
                    gen_to_be_invoked.UnitInHidePoint( _position );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetHidePositions(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stageId = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetHidePositions( _stageId );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RefreshAttackPointsTest(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.RefreshAttackPointsTest(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ShowAttackPoints(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ShowAttackPoints(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ShowAttackRange(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ShowAttackRange(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RefreshHidePointsTest(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.RefreshHidePointsTest(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAllUnitCountByTeam(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _team = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetAllUnitCountByTeam( _team );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetMeleeAttackPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetMeleeAttackPosition(  );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAttackPositionNew(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Gameplay.PVE.Entity.UnitBase _attacker = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 2, typeof(Gameplay.PVE.Entity.UnitBase));
                    
                        var gen_ret = gen_to_be_invoked.GetAttackPositionNew( _attacker );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAttackPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<Gameplay.PVE.Entity.UnitBase>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    Gameplay.PVE.Entity.UnitBase _attacker = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 2, typeof(Gameplay.PVE.Entity.UnitBase));
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetAttackPosition( _attacker, _stageId );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& translator.Assignable<Gameplay.PVE.Entity.UnitBase>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)) 
                {
                    Gameplay.PVE.Entity.UnitBase _attacker = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 2, typeof(Gameplay.PVE.Entity.UnitBase));
                    int _stageId = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.Vector3 _position;translator.Get(L, 4, out _position);
                    
                        var gen_ret = gen_to_be_invoked.GetAttackPosition( _attacker, _stageId, _position );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager.GetAttackPosition!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ResLoadComplete(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ResLoadComplete(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Restart(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Restart(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StageStart(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.StageStart(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearSummonUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ClearSummonUnit(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearObstacles(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ClearObstacles(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearHangingUnits(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ClearHangingUnits(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RpgStart(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) 
                {
                    bool _isStart = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.RpgStart( _isStart );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1) 
                {
                    
                    gen_to_be_invoked.RpgStart(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.Entity.UnitManager.RpgStart!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StartGoToRpg(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.StartGoToRpg(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearLastStageUnits(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stageId = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.ClearLastStageUnits( _stageId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetUnitIgnoreType(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetUnitIgnoreType( _id );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetUnit( _id );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetUnitBase(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetUnitBase( _id );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetMortalUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetMortalUnit( _id );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetObstacleUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetObstacleUnit( _id );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Update(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Update(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_FixedUpdate(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.FixedUpdate(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_BeforeUpdate(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.BeforeUpdate(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LateUpdate(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.LateUpdate(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckIsCanAutoSkill(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Gameplay.PVE.Data.UnitData _data = (Gameplay.PVE.Data.UnitData)translator.GetObject(L, 2, typeof(Gameplay.PVE.Data.UnitData));
                    
                        var gen_ret = gen_to_be_invoked.CheckIsCanAutoSkill( _data );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearStage(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ClearStage(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearMyHeroes(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ClearMyHeroes(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearEnemy(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ClearEnemy(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_HideAllHeroes(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.HideAllHeroes(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ShowAllHeroes(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ShowAllHeroes(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StageEnd(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.StageEnd(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SwitchBall(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.SwitchBall(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RebornSelfUnits(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.RebornSelfUnits(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Dispose(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Dispose(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_KillNum(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.KillNum);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Instance(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Gameplay.PVE.Entity.UnitManager.Instance);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_units(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.units);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_npcUnits(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.npcUnits);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_enemyDeadNum(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.enemyDeadNum);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_globalSkillIndex(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.globalSkillIndex);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_enemyEnergy(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.enemyEnergy);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_restEnemyCount(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.restEnemyCount);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_currentStage(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentStage);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_maxStage(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxStage);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_units(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.units = (System.Collections.Generic.List<Gameplay.PVE.Entity.UnitBase>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<Gameplay.PVE.Entity.UnitBase>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_npcUnits(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.npcUnits = (System.Collections.Generic.List<Gameplay.PVE.Entity.NpcUnit>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<Gameplay.PVE.Entity.NpcUnit>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_enemyDeadNum(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.enemyDeadNum = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_globalSkillIndex(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.globalSkillIndex = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_enemyEnergy(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.enemyEnergy = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_restEnemyCount(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.restEnemyCount = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_currentStage(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.currentStage = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_maxStage(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Gameplay.PVE.Entity.UnitManager gen_to_be_invoked = (Gameplay.PVE.Entity.UnitManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.maxStage = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
